#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    mVBoxLayout = new QVBoxLayout;
    mCacheLineEdit = new CacheLineEdit;

    mVBoxLayout->addWidget(mCacheLineEdit);
    ui->centralWidget->setLayout(mVBoxLayout);

    mCacheLineEdit->addValue("C");
    mCacheLineEdit->addValue("C++");
    mCacheLineEdit->addValue("CPP");
    mCacheLineEdit->addValue("XXXCC");
    mCacheLineEdit->addValue("CCGHH");
    mCacheLineEdit->addValue("122xxfdf111");

    mCacheLineEdit->show();
}

MainWindow::~MainWindow()
{
    delete ui;
}
